<% form_for @user, :url => {:action => "update"}, :html => {:class => "wufoo topLabel page"} do |f| %>
 <%= f.error_messages %>
	<div class="info"> 
		<h2>Edita tus Datos</h2> 
	</div>

	<li id="foli1" 		class="     ">
		<label class="desc" id="title1" for="Field1">
			Nombres
		</label>
		<span>
			<%= f.text_field :name, :class => "field text", :size => "30", :tabindex => "1"%>
			<label for="name">Primer Nombre	
			<span id="req_1" class="req">*</span>
			</label>
		
		</span>
		<span>
			<%= f.text_field :name2, :class => "field text", :size => "30", :tabindex => "2"%>
			<label for="name2l">Segundo Nombre
			</label>
		</span>
	</li>
	
	<li id="foli1" 		class="     ">
		<label class="desc" id="title1" for="Field1">
			Apellidos
		</label>
		<span>
			<%= f.text_field :lastname, :class => "field text", :size => "30", :tabindex => "3"%>
			<label for="name">Primer Apellido
			<span id="req_1" class="req">*</span>
			</label>

		</span>
		<span>
			<%= f.text_field :lastname2, :class => "field text", :size => "30", :tabindex => "4"%>
			<label for="lastname2">Segundo Apellido</label>
		</span>
	</li>
	
	<li id="foli1" 		class="     ">
		<label class="desc" id="title1" for="email">
			Email
			<span id="req_1" class="req">*</span>
		</label>
		<span>
			<%= f.text_field :email, :class => "field text", :size => "30", :tabindex => "6"%>			
		</span>
	</li>

  <p>
    <%= f.submit 'Actualizar' %>
  </p>
<% end %>

<%= link_to 'Show', @user %> |
<%= link_to 'Back', users_path %>